<?php

/*
 * Copyright (C) 2014 University of Pittsburgh
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

class Document {
  
  public $document_id = '';
  public $document_citation = '';
  public $document_date = NULL;
  public $document_header = '';
  public $document_body = '';
  public $document_submit_date = NULL;

  public function to_string() {
    $retVal = '';
    $retVal .= ('[document_id = ' . $this->document_id . ', ');
    $retVal .= ('document_citation = ' . $this->document_citation . ', ');
    $retVal .= ('document_date = ' . $this->document_date . ', ');
    $retVal .= ('document_header = ' . $this->document_header. ', ');
    $retVal .= ('document_body = ' . $this->document_body . ', ');
    $retVal .= ('document_submit_date = ' . $this->$ocument_submit_date . ']');
    return $retVal;
  }
}